﻿<UserControl x:Class="GeoPlugin.GermanyViewBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Width="370" Height="550">
    
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Storyboard x:Name="ShowPopup" x:Key="ShowPopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Name="HidePopup" x:Key="HidePopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <DiscreteDoubleKeyFrame KeyTime="0" Value="0" />
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </Grid.Resources>
        <Viewbox x:Name="MapsViewbox">
            <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    x:Name="MapsHotSpot" Width="370" 			
                    Height="550"
                    UseLayoutRounding="False">
                <Image x:Name="Image" Height="550" Stretch="Fill" Width="370" Canvas.Left="0" Canvas.Top="0"/>
             
            </Canvas>
        </Viewbox>

        <Popup x:Name="contextMenu" Opened="contextMenu_Opened" Closed="contextMenu_Closed">
            <Grid x:Name="GridMenu" Opacity="0.9">
                <Border BorderBrush="Azure" BorderThickness="1" CornerRadius="3" >

                    <ListBox x:Name="contextListBox" Opacity="0.9" />

                </Border>
            </Grid>
        </Popup>

    </Grid>
</UserControl>
